package com.itheima.myfile.myfiledemo;

import java.io.File;

public class FileDemo01 {
    public static void main(String[] args) {
        //第一种
        File file1 = new File("D:\\dev\\a.txt");
        System.out.println(file1);
        System.out.println("============");
        //第二种
        File file2 = new File("D:\\dev","a.txt");
        System.out.println(file2);
        System.out.println("============");

        //第三种
        File file3 = new File("D:\\dev");
        File file4 = new File(file3,"a.txt");
        System.out.println("file4 = " + file4);
        System.out.println("============");

    }
}
